<%= index_field_wrapper(**field_wrapper_args) do %>
  <% if @field.as_html %>
    <%== @field.value %>
  <% elsif @field.protocol.present? %>
    <%= link_to @field.value, "#{@field.protocol}:#{@field.value}" %>
  <% else %>
    <%= link_to_if @field.link_to_record, @field.value, resource_view_path %>
  <% end %>
<% end %>
